package com.sunshine.homepage.service;


import com.sunshine.homepage.doamin.commodity;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface HomepageMerchantService {
    /**
     * 添加商品
     */
    Map<String, Object> addCommodity(String commodityName, String productDescription, Integer repertoryNumber, String commodityBrand, String commodityCategory, MultipartFile commodityPicture, Double price);

    /**
     * 修改商品
     */

    Map<String, Object> updateCommodity(Integer id, String commodityName, String productDescription,Integer repertoryNumber, String commodityBrand, String commodityCategory, MultipartFile commodityPicture, Double price);


    /**
     * 删除商品
     */
    boolean deleteCommodity(Integer id);
}
